package xyz.jangle.design.observer;
/**
 * 具体观察者
 * @author Administrator
 *
 */
public class ConcreteObserver implements Observer {
	
	private Subject subject;

	public ConcreteObserver(Subject subject) {
		super();
		this.subject = subject;
		this.subject.addObserver(this);
	}

	@Override
	public void update() {
		
		System.out.println("主题中更新了新内容");

	}

}
